using System;
using System.Runtime.InteropServices;
namespace BMC.ARSystem
{
	[ARStructTypeInfo(Name = "ARSortStruct", NumberOfMembers = 2u), ClassInterface, Guid("0684d10a-cd3e-4c37-ac7b-f9461c9ca86a"), ProgId("BMC.ARSystem.SortInfo")]
	public class SortInfo
	{
		[Guid("29b218a3-f6be-4730-baf6-b786c63c272d")]
		public enum SortOrder
		{
			Ascending = 1,
			Descending
		}
		[ARStructMemTypeInfo(Name = "fieldId", Offset = 0u)]
		private int _fieldId;
		[ARStructMemTypeInfo(Name = "order", Offset = 1u)]
		private int _order;
		public int FieldId
		{
			get
			{
				return this._fieldId;
			}
			set
			{
				this._fieldId = value;
			}
		}
		public SortInfo.SortOrder Order
		{
			get
			{
				return (SortInfo.SortOrder)this._order;
			}
			set
			{
				this._order = (int)value;
			}
		}
		public SortInfo()
		{
		}
		public SortInfo(int fieldId, SortInfo.SortOrder order)
		{
			this._fieldId = fieldId;
			this._order = (int)order;
		}
		public SortInfo(int fieldId, object order)
		{
			this._fieldId = fieldId;
			this._order = Convert.ToInt32(order);
		}
	}
}
